/**
 * @file 蚂蚁修下单
 * @author yangjiangming <449654337@qq.com>
 * @date 2019/04/23 16:17
 */

layui.extend({
    oms_work_config: 'work/config/zmn.oms.work.config',
    oms_order_add_common: 'order/zmn.oms.order.add.common',
}).define(['oms_work_config', 'oms_order_add_common', 'page'], function (exports) {
    var addUtils = layui.oms_order_add_common;
    var config = layui.oms_work_config;
    var page = layui.page;

    page.init({
        initPage: function () {
            // 初始化页面
            addUtils.init({
                isNew: true,
                isEntrust: true,
                saveURL: config.url.saveEntrustURL,
                success: function () {
                    location.reload();
                }
            });
        },
        initEvent: function () {

        }
    });

    exports("oms_order_entrustAdd");
});
